﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using Sunboxsoft.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sunboxsoft.ASMS.Server.Domain.UnitTest
{
    [TestClass]
    public class GetServiceUnitTest
    {
        private Service.GetService _service;

        public GetServiceUnitTest()
        {
            Logger.InitByLogDirectory(System.Configuration.ConfigurationManager.AppSettings["SYS.LogDirectory"]);
            Domain.Library.Load();
            _service = new Service.GetService();
        }

        [TestMethod]
        public void TestGetMaintenanceBillDetail()
        {
            SingleResult<Data.MaintenanceBillDetail> result = _service.GetMaintenanceBillDetail(new Guid("b0f5d644-fc7d-4e7c-b52c-62bd0e0b501e"));
            Assert.IsTrue(result.IsSuccess);
        }

        [TestMethod]
        public void GetSettlementBillDetailByMaintennanceBillId()
        {
            SingleResult<Data.SettlementBillDetail> result = _service.GetSettlementBillDetailByMaintennanceBillId(new Guid("484df0bf-412c-4f2b-9283-d53395dc6df2"));
            Assert.IsTrue(result.IsSuccess);
        }
    }
}
